﻿using Shop.RemoteModel.Goods;
using Shop.RemoteModel.Goods.Model;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class GoodsSkuStockEvent : IRpcApiService
    {
        private readonly IGoodsSkuStockService _Service;

        public GoodsSkuStockEvent (IGoodsSkuStockService service)
        {
            this._Service = service;
        }

        public GoodsStock[] GetGoodsStock (GetGoodsStock obj)
        {
            return this._Service.GetStocks(obj.GoodsId);
        }
    }
}
